
public abstract class car extends landV{

	//variables
	int mpg;
	int acceleration;
	
	
	
	//constructor
	public car(int price, int wheelCount, int topSpeed, boolean isTotalled,
			boolean hasEngine, boolean allTerrain, String habitatDriven, int mpg, int acceleration) {
		super(price, wheelCount, topSpeed, isTotalled, hasEngine, allTerrain, habitatDriven);
		this.mpg=mpg;
		this.acceleration=acceleration;
	}
	
	//methods
	public String toString(){
		
		return ""+price+wheelCount+topSpeed+isTotalled+hasEngine+allTerrain+habitatDriven+mpg+acceleration;
		
	}
	
}
